#ifndef _MEMORY_H_
#define _MEMORY_H_

#include "gtmonitor.h"
#include "common.h"

struct mem_info
{
    unsigned long memtotal;
    unsigned long memfree;
    unsigned long buffers;
    unsigned long cached;
};

extern int is_mem_recording;

void init_memory(void);

void mem_dump(void);

unsigned long get_mem_total(void);

unsigned long get_mem_free(void);

unsigned long get_mem_buffers(void);

unsigned long get_mem_cached(void);

void mem_cleanup(void);

#endif /* _MEMORY_H_ */
